package com.study.model;

import com.study.annotation.NeedSetValue;
import com.study.dao.UserDao;

import java.io.Serializable;

/**
 * @author: chenhs
 * @date: Created in 6:24 2019/11/28
 **/
public class Order implements Serializable {

    private String id;

    private String customerId;

    @NeedSetValue(beenClass = UserDao.class, param = "customerId", method = "find", targetField = "name")
    private String customerName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }
}
